package com.ibm.csr.staf;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class MSGLog {

	public static BufferedWriter bw;
	static {
		try {
			bw = new BufferedWriter(new FileWriter("C:/myruntrace.log"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static void log(String log) {
		System.out.println("[com][ibm][csr][staf] " + log);
		try {
			bw.append("[com][ibm][csr][staf] " + log);
			bw.flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
